package com.woniu.car.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @ClassName UpdateServiceParam
 * @Description TODO
 * @Author 李磊
 * @Version 1.0
 **/
@Data
public class UpdateServiceParam {


    @TableId(value = "service_id", type = IdType.AUTO)
    @NotNull(message = "服务ID不能为空")
    @ApiModelProperty(value = "服务ID",example = "1")
    private Integer serviceId;

    /**
     * 服务名
     */
    @Size(min=0, max=15, message = "服务名大小有误")
    @ApiModelProperty(value = "服务名")
    private String serviceName;

    /**
     * 服务编号
     */
    @Size(min=0, max=15, message = "服务编号大小有误")
    @ApiModelProperty(value = "服务编号")
    private String serviceNo;

    /**
     * 服务详情
     */
    @Size(min=0, max=300, message = "服务详情大小有误")
    @ApiModelProperty(value = "服务详情")
    private String description;

    /**
     * 服务价格
     */
    @Min(value = 0, message = "服务价格有误")
    @ApiModelProperty(value = "服务价格",example = "0.0")
    private BigDecimal servicePrice;

    /**
     * 服务分类id
     */
    @Min(value = 1, message = "服务分类有误")
    @ApiModelProperty(value = "服务分类id",example = "1")
    private Integer typeId;

    /**
     * 商品状态 0.可上架，1.不可上架，3.已上架
     */
    @Size(min=0, max=2, message = "服务状态参数有误")
    @ApiModelProperty(value = "服务状态")
    private String status;

    /**
     * 服务图片
     */
    @ApiModelProperty(value = "服务图片")
    private String image;

}
